package com.dark.sys.web.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.dark.common.web.controller.BaseController;
import com.dark.common.web.validate.AjaxResponse;
import com.dark.sys.service.AuthService;
import com.dark.sys.web.dto.AuthDto;

@Controller
@RequestMapping("/admin/sys/auth")
public class AuthController extends BaseController {

	@Autowired
	private AuthService authService ;
	
	@ResponseBody
	@RequestMapping(value="/allotUserRole")
	public AjaxResponse authService(AuthDto dto) {
		this.authService.allotUserRole(dto);
		return new AjaxResponse() ;
	}
	
	@ResponseBody
	@RequestMapping(value="/get")
	public AuthDto get(AuthDto dto) {
		return this.authService.get(dto) ;
	}
}
